<div class="table2" style="padding-top:5px;">
    <div class="tablebox">
        <table style="margin-bottom: 10px;">
            <?php if(!$this->stateArr){ ?>
                <tr class="trhui"><td>没有相关数据</td></tr>
            <?php } else { ?>
                <?php foreach ($this->stateArr as $key => $stateVal) { ?>
                    <?php if($this->type == "way"){ ?>
                        <tr class="trhui">
                            <td style="color: #c00;text-align: center;"><?php echo $this->showData->getCityName($stateVal["other"]);?></td>
                            <td class="righttd">客户发单总人数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_WayUser, $stateVal["other"]);?>人</td>
                            <td class="righttd">国际运单总个数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_WayNum, $stateVal["other"]);?>个</td>
                            <td class="righttd">国际运单总预付款：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_WayMoney, $stateVal["other"]);?>元</td>
                            <td class="righttd">国际运单总预付重量：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_WayWeight, $stateVal["other"])/1000;?>kg</td>
                            <td class="righttd">国际运单总预付体积：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_WayVolume, $stateVal["other"])/1000;?>kg</td>
                        </tr>
                    <?php } else if ($this->type == "order") { ?>
                        <tr class="trhui">
                            <td style="color: #c00;text-align: center;"><?php echo $this->showData->getCityName($stateVal["other"]);?></td>
                            <td class="righttd">代购订单总人数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_OrderUser, $stateVal["other"]);?>人</td>
                            <td class="righttd">代购订单总个数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_OrderNum, $stateVal["other"]);?>个</td>
                            <td class="righttd">代购订单总金额：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_OrderSum, $stateVal["other"]);?>元</td>
                        </tr>
                    <?php } else if ($this->type == "store") { ?>
                        <tr class="trhui">
                            <td style="color: #c00;text-align: center;"><?php echo $this->showData->getCityName($stateVal["other"]);?></td>
                            <td class="righttd">客户入库总人数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_StoreUser, $stateVal["other"]);?>人</td>
                            <td class="righttd">入库总个数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_StoreNum, $stateVal["other"]);?>个</td>
                            <td class="righttd">入库总重量：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_StoreWeight, $stateVal["other"])/1000;?>kg</td>
                        </tr>
                    <?php } else if ($this->type == "user") { ?>
                        <tr class="trhui">
                            <td style="color: #c00;text-align: center;"><?php echo $this->showData->getCityName($stateVal["other"]);?></td>
                            <td class="righttd">注册总人数：</td>
                            <td class="lefttd">
                                <?php echo $this->showData->getSumData($this->starttime, $this->endtime,  Application_Model_DataType::Type_UserNum, $stateVal["other"]);?>人</td>
                        </tr>
                    <?php } ?>
                <?php }?>
            <?php } ?>
        </table>
    </div>
</div>